package com.apexsoft.margin.account.management.domain.excel.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 调拨单模板
 * 批量导入Bean
 *
 * Excel文件（调拨单模板）中的部分表头在锁券相关接口未找到对应变量
 * 客户名称 证券名称 调拨价格 按收盘价更新
 */
@TableName("T_COMMIT")
public class AllocationDataDomain {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ExcelProperty("处理")
    @TableField("result_code")
    private Integer resultCode; // 1: true ; 0:false

    @ExcelProperty("存在与否")
    private Integer exist; // 1:true ; 0:false

    @TableField("result_note")
    private String resultNote;

    @TableField("file_code")
    private String fileCode;



    @ExcelProperty("客户名称")
    private String custid ; //      	C16	客户代码
//    private         客户名称 ; //

    @ExcelProperty("机构编码")
    private String orgid ; // 	C4	机构编码

    @ExcelProperty("资金账号")
    private String fundid ; //    	C16	资金账号

    @ExcelProperty("交易市场")
    private String market ; //   	C1	交易市场
    @ExcelProperty("证券代码")
    private String stkcode ; //	C8	证券代码
//    private ; // 证券名称
    @ExcelProperty("券源来源")
    private String sourcetype ; //	C1	券源来源
    @ExcelProperty("调拨数量")
    private Double adjustqty ; // 	N20(2)	调拨数量
//    private 调拨价格 ; //
    @ExcelProperty("回收类型")
    private String backtype ; //   	C1	回收类型
    @ExcelProperty("到期日期")
    private Integer enddate	; // N8	到期日期

    @ExcelProperty("收费模式")
    private String locktype ; // 	C1	收费模式

    @ExcelProperty("融券费率")
    private Double usedfeerate ; // 	N12(8)	融券费率
    @ExcelProperty("约券管理费率")
    private Double unusedfeerate ; // 	N12(8)	约券管理费率
    @ExcelProperty("违约费率")
    private Double violatefeerate ; // 	N12(8)	违约费率
    @ExcelProperty("提前收回补偿费")
    private Double returnfee ; // 	N20(2)	提前收回补偿费
    @ExcelProperty("调拨方向")
    private String transdirect ; //	C1	调拨方向(0转入 1转出 其它：回退)
//    private 按收盘价更新 ; //


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getResultCode() {
        return resultCode;
    }

    public void setResultCode(Integer resultCode) {
        this.resultCode = resultCode;
    }

    public Integer getExist() {
        return exist;
    }

    public void setExist(Integer exist) {
        this.exist = exist;
    }

    public String getResultNote() {
        return resultNote;
    }

    public void setResultNote(String resultNote) {
        this.resultNote = resultNote;
    }

    public String getFileCode() {
        return fileCode;
    }

    public void setFileCode(String fileCode) {
        this.fileCode = fileCode;
    }

    public String getCustid() {
        return custid;
    }

    public void setCustid(String custid) {
        this.custid = custid;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getFundid() {
        return fundid;
    }

    public void setFundid(String fundid) {
        this.fundid = fundid;
    }

    public String getMarket() {
        return market;
    }

    public void setMarket(String market) {
        this.market = market;
    }

    public String getStkcode() {
        return stkcode;
    }

    public void setStkcode(String stkcode) {
        this.stkcode = stkcode;
    }

    public String getSourcetype() {
        return sourcetype;
    }

    public void setSourcetype(String sourcetype) {
        this.sourcetype = sourcetype;
    }

    public Double getAdjustqty() {
        return adjustqty;
    }

    public void setAdjustqty(Double adjustqty) {
        this.adjustqty = adjustqty;
    }

    public String getBacktype() {
        return backtype;
    }

    public void setBacktype(String backtype) {
        this.backtype = backtype;
    }

    public Integer getEnddate() {
        return enddate;
    }

    public void setEnddate(Integer enddate) {
        this.enddate = enddate;
    }

    public String getLocktype() {
        return locktype;
    }

    public void setLocktype(String locktype) {
        this.locktype = locktype;
    }

    public Double getUsedfeerate() {
        return usedfeerate;
    }

    public void setUsedfeerate(Double usedfeerate) {
        this.usedfeerate = usedfeerate;
    }

    public Double getUnusedfeerate() {
        return unusedfeerate;
    }

    public void setUnusedfeerate(Double unusedfeerate) {
        this.unusedfeerate = unusedfeerate;
    }

    public Double getViolatefeerate() {
        return violatefeerate;
    }

    public void setViolatefeerate(Double violatefeerate) {
        this.violatefeerate = violatefeerate;
    }

    public Double getReturnfee() {
        return returnfee;
    }

    public void setReturnfee(Double returnfee) {
        this.returnfee = returnfee;
    }

    public String getTransdirect() {
        return transdirect;
    }

    public void setTransdirect(String transdirect) {
        this.transdirect = transdirect;
    }
}
